package cn.mulanbay.persistent.mapper;

import cn.mulanbay.persistent.dto.UserRoleDto;
import cn.mulanbay.persistent.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper 接口
 *
 * @author fenghong
 * @create 2022-01-16 10:00
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    Long getUserRoleId(@Param("userId") Long userId);

    List<String> selectRoleFPermsList(@Param("roleId") Long roleId);

    void deleteUserRole(@Param("userId") Long userId);

    List<UserRoleDto> getUserRoleList(@Param("userId") Long userId);
}
